home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / find / dist / lib / Makefile.in < prev    next >
Encoding:
Makefile  |  1992-07-14  |  2.0 KB  |  79 lines

  1. # Makefile for library files used by GNU find, xargs, and locate.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1990 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL = /bin/sh
  20.  
  21. srcdir = @srcdir@
  22. VPATH = @srcdir@
  23.  
  24. SOURCES = dirname.c error.c filemode.c getopt.c getopt1.c idcache.c \
  25. listfile.c modechange.c nextelem.c regex.c savedir.c xmalloc.c \
  26. xstrdup.c fileblocks.c fnmatch.c memset.c stpcpy.c strdup.c strftime.c \
  27. strspn.c strstr.c strtol.c alloca.c
  28.  
  29. OBJECTS = dirname.o error.o filemode.o getopt.o getopt1.o idcache.o \
  30. listfile.o modechange.o nextelem.o regex.o savedir.o xmalloc.o \
  31. xstrdup.o @LIBOBJS@ @ALLOCA@
  32.  
  33. DISTFILES = Makefile.in \
  34. fnmatch.h getopt.h modechange.h modetype.h pathmax.h regex.h wait.h $(SOURCES)
  35.  
  36. all: libfind.a
  37. .PHONY: all
  38.  
  39. .c.o:
  40.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir) $<
  41.  
  42. install: all
  43. .PHONY: install
  44.  
  45. TAGS: $(SOURCES)
  46.     etags $(SOURCES)
  47.  
  48. clean:
  49.     rm -f *.a *.o
  50. .PHONY: clean
  51.  
  52. mostlyclean: clean
  53. .PHONY: mostlyclean
  54.  
  55. distclean: clean
  56.     rm -f Makefile
  57. .PHONY: distclean
  58.  
  59. realclean: distclean
  60.     rm -f TAGS
  61. .PHONY: realclean
  62.  
  63. dist:
  64.     ln $(DISTFILES) ../`cat ../.fname`/lib
  65. .PHONY: dist
  66.  
  67. libfind.a: $(OBJECTS)
  68.     rm -f $@
  69.     $(AR) cr $@ $(OBJECTS)
  70.     -$(RANLIB) $@
  71.  
  72. fnmatch.o: fnmatch.h
  73. getopt1.o: getopt.h
  74. modechange.o: modechange.h
  75. regex.o: regex.h
  76.  
  77. # Prevent GNU make v3 from overflowing arg limit on SysV.
  78. .NOEXPORT:
  79.